<template>
  <div class="func-grid">
    <div class="row">
      <div v-for="(item, index) in grids" :key="index" class="col">
        <img :src="item.icon" />
        <div class="name">{{ item.name }}</div>
      </div>
    </div>
  </div>
</template>

<script>
const grids = [
  { icon: '', name: '智能测评' },
  { icon: '', name: '简历宝' },
  { icon: '', name: '留学辅导' },
  { icon: '', name: '移民规划' },
  { icon: '', name: '模拟面试' },
  { icon: '', name: '热门课程' },
  { icon: '', name: '就业报告' },
  { icon: '', name: '行业评价' },
  { icon: '', name: '私人定制' },
  { icon: '', name: '入驻合作' }
]

Object.freeze(grids)

export default {
  data() {
    return {
      grids
    }
  }
}
</script>

<style lang="less" scoped>
.func-grid {
  background-color: #ffffff;
  padding: 0 22.5px;
  padding-bottom: 11px;
  border-radius: 15px 15px 0 0;

  .row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;

    .col {
      display: flex;
      flex-flow: column;
      align-items: center;
      text-align: center;
      width: 20%;
      margin-top: 20px;

      img {
        width: 25px;
        height: 25px;
      }

      .name {
        font-size: 13px;
        color: #666666;
        margin-top: 10px;
      }
    }
  }
}
</style>